import service from '@/utils/request'

// @Tags UserLevel
// @Summary 创建UserLevel
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserLevel true "创建UserLevel"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userLevel/createUserLevel [post]
export const createUserLevel = (data) => {
     return service({
         url: "/userLevel/createUserLevel",
         method: 'post',
         data
     })
 }


// @Tags UserLevel
// @Summary 删除UserLevel
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserLevel true "删除UserLevel"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userLevel/deleteUserLevel [delete]
 export const deleteUserLevel = (data) => {
     return service({
         url: "/userLevel/deleteUserLevel",
         method: 'delete',
         data
     })
 }

// @Tags UserLevel
// @Summary 删除UserLevel
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserLevel"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userLevel/deleteUserLevel [delete]
 export const deleteUserLevelByIds = (data) => {
     return service({
         url: "/userLevel/deleteUserLevelByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserLevel
// @Summary 更新UserLevel
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserLevel true "更新UserLevel"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userLevel/updateUserLevel [put]
 export const updateUserLevel = (data) => {
     return service({
         url: "/userLevel/updateUserLevel",
         method: 'put',
         data
     })
 }


// @Tags UserLevel
// @Summary 用id查询UserLevel
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserLevel true "用id查询UserLevel"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userLevel/findUserLevel [get]
 export const findUserLevel = (params) => {
     return service({
         url: "/userLevel/findUserLevel",
         method: 'get',
         params
     })
 }


// @Tags UserLevel
// @Summary 分页获取UserLevel列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserLevel列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userLevel/getUserLevelList [get]
 export const getUserLevelList = (params) => {
     return service({
         url: "/userLevel/getUserLevelList",
         method: 'get',
         params
     })
 }